import Fields from 'dependencies/Fields'
import Field from 'dependencies/Field'
  
export const class_name = new Field({
  prop: 'class_name',
  label: '名称'
})
export const order = new Field({
  prop: 'order',
  label: '排序',
  type: 'number'
})
export const is_online = new Field({
  prop: 'is_online',
  label: '是否上线生产',
  type: 'radio',
  enums: [
    { value: 1, label:"是"},
    { value: 0, label:"否"}
  ]
})
export const templateClassTableFields = Object.freeze([
  class_name,
  order,
  is_online
])

export const queryListFields = [
  class_name
]
export const columns = [{
    key: "class_name",
    title: "class_name",
    type: "text"
  }
]
export const classCreateFields = [
  class_name,
  order,
  is_online
]